package com.example.idlefish.GoodsInfo.ActivityContract

import android.content.Context
import android.content.Intent
import androidx.activity.result.contract.ActivityResultContract
import com.example.idlefish.GoodsInfo.GoodBuySuccessActivity
import com.example.idlefish.GoodsInfo.pojo.BuyInfo

class GoodBuySuccessContract : ActivityResultContract<BuyInfo, Unit>() {
    override fun createIntent(context: Context, input: BuyInfo): Intent {
        val intent = Intent(context, GoodBuySuccessActivity::class.java)
        intent.putExtra("buyInfo", input)
        return intent
    }

    override fun parseResult(resultCode: Int, intent: Intent?) {

    }
}